package file;

import java.io.File;
import java.io.IOException;

public interface IFileConnection {
	/**
	 * checks if changes have been made since the last save
	 * 
	 * @return	true, if changes have been made
	 */
	public boolean changes();
	
	/**
	 * saves into the file
	 * 
	 * @param f	file,
	 * @throws IOException	if exceptions occur during saving
	 */
	public void save(File f) throws IOException;
	public void newFile() throws IOException;
	public void open(File f) throws IOException;
}
